package cn.edu.sjtu.spinning.vo;

import cn.edu.sjtu.spinning.domain.Task;
import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class TasksWithTypeVO {

  private Map<Integer, List<Task>> tasks;
  private String type;

  public static TasksWithTypeVO build(Map<Integer, List<Task>> map) {
    TasksWithTypeVO vo = new TasksWithTypeVO();
    vo.setTasks(map);
    vo.setType("auto");
    return vo;
  }
}
